let myfn = {};

/**
 * @method 两个分页合并
 * @param originPage 原数组
 * @param currentPage 要追加的数组
 */
myfn.page = function (originPage, currentPage) {
  if (originPage == undefined || originPage.rows == undefined) {
    return currentPage;
  }
  let pastRecords = originPage.rows
  currentPage.rows = pastRecords.concat(currentPage.rows)
  return currentPage;
};

export default myfn;